import Vue from "vue";
import Antd from "ant-design-vue";
import "ant-design-vue/dist/antd.css";
import App from "./App.vue";
import router from "./router";
import store from "./store";

Vue.use(Antd);

Vue.config.productionTip = false;

/**
 * 渲染函数
 * appContent 子应用html
 * loading 如果主应用设置loading效果，可不要
 */
function render() {
  new Vue({
    el: "#container",
    router,
    store,
    render: h => h(App)
  });
}

// 调用渲染主应用
render();
